/*
 * Menu.java
 *
 * Created on 30 octobre 2007, 19:10
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package com.ifips5.nal.epizza.web.model;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author Moi
 */
@XmlRootElement(name = "menu")
public class Menu implements Serializable
{
    @XmlAttribute(name = "typeMenu")
    private TypeMenu typeMenu = null;
    
    @XmlElement(name = "pizza")
    private List<Pizza> pizzaList = new LinkedList<Pizza>();
    
    @XmlElement(name = "boisson")
    private List<Boisson> boissonList = new LinkedList<Boisson>();

    /** Creates a new instance of Menu */
    public Menu()
    {
    }
    
    public TypeMenu getTypeMenu()
    {
        return typeMenu;
    }

    @XmlTransient
    public void setTypeMenu(TypeMenu typeMenu)
    {
        this.typeMenu = typeMenu;
    }

    public List<Pizza> getPizzaList()
    {
        return pizzaList;
    }

    @XmlTransient
    public void setPizzaList(List<Pizza> pizzaList)
    {
        this.pizzaList = pizzaList;
    }

    public List<Boisson> getBoissonList()
    {
        return boissonList;
    }

    @XmlTransient
    public void setBoissonList(List<Boisson> boissonList)
    {
        this.boissonList = boissonList;
    }

}
